//引入Bmob后端sdk
import Bmob from 'hydrogen-js-sdk'
//基础配置
import config from '@/config'
import http from '@/http'
import utils from '@/utils'

// 自定义组件
import stateComponent from '@/components/stateComponent'

import * as echarts from 'echarts'


export default {
    install(Vue){
        Bmob.initialize(config.SecretKey,config.keyCode,config.MasterKey);
        Vue.prototype.$config = config
        Vue.prototype.$Bmob = Bmob
        Vue.prototype.$http = http
        Vue.prototype.$utils = utils
        Vue.prototype.$echarts = echarts
        Vue.component('state-view',stateComponent)
    }
}